<template>
  <div class="news">
    <div class="head">
      <i class="iconfont icon-yonghuguanli_huaban" @click="$router.push('/userlist')"></i>
      <h2>消息列表</h2>
      <i class="iconfont icon-gengduo2"></i>
    </div>
    <div class="head" style="margin-top: 20px;">
      <i class="iconfont icon-24gl-portraitMaleInfo2" @click="$router.push('/userlist')"></i>
      <p>小纸条</p>
      <i class="iconfont icon-zengjia"></i>
    </div>
    <div class="content">
      <img src="	https://ceshi2.dishait.cn/uploads/20240102/f342a0d4cc8f9cdc0d2255a9ffbc1ad7.png" alt="">
      <div>
        <p>盖了帽了</p>
        <p style="font-size: 14px; color: #999;">盖了帽了</p>
      </div>
      <span>2023-12-27 下午 7:27</span>
    </div>
    <img src="http://43.138.15.137:8085/static/common/nothing.png" alt="" v-if="false">
  </div>
</template>
<script>
export default {}
</script>
<style lang='scss' scoped>
.news {
  padding: 10px;
  box-sizing: border-box;

  .head {
    display: flex;
    line-height: 20px;

    h2 {
      flex: 1;
      text-align: center;
    }

    p {
      flex: 1;
      text-align: center;
    }
  }

  >img {
    width: 150px;
    height: 150px;
    border: 1px solid #ccc;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 30px;
  }

  .content {
    display: flex;
    margin-top: 20px;
    padding: 0 10px;

    div {
      flex: 1;
      margin: 0 10px;
      flex-direction: column;
      font-size: 16px;
      line-height: 20px;
    }

    img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      vertical-align: middle;
    }

    span {
      font-size: 14px;
      color: #999;
    }
  }
}
</style>